import React from "react";
import "./index.scss";
function XtxHomePanel(props: {
  children: React.ReactNode;
  right: React.ReactNode;
  title: string;
  subTitle?: string;
}) {
  return (
    <>
      <div className="home-panel">
        <div className="container">
          <div className="head">
            <h3>
              {props.title}
              <small>{props.subTitle}</small>
            </h3>
            {props.right}
          </div>
          {props.children}
        </div>
      </div>
    </>
  );
}
export default XtxHomePanel;
